<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="p" uri="http://primefaces.prime.com.tr/ui"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:p="http://primefaces.prime.com.tr/ui">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><h:outputText
		value="#{message.mainHeader} - #{message.adminLoginPanelHeader}" /></title>
	<p:resources />
		<link rel="stylesheet" type="text/css" href="../style.css" />	
	<style type="text/css">
	.matrix { font-family:Lucida Console, Courier, Monotype; font-size:15pt; text-align:center; width:12px; padding:0px; margin:0px;}
	</style>
	<script src="../matrix.js" type="text/javascript"></script>

	</head>
	<body><center>
	<h:panelGrid  width="900" border="0" columns="2" >
		<h:panelGroup style="width: %70;">
		 <h:graphicImage value="../images/dunya.png"></h:graphicImage>
		 
		</h:panelGroup>
		<h:panelGroup><div id="matrix">SANAL KITAPLIK</div></h:panelGroup>
	</h:panelGrid>	 <h:form id="adminControlMenu">
	<h:panelGrid  width="900" border="0" columns="1" >
		<h:panelGroup>  
	    <p:menubar>
	    <p:submenu label="çıkış"><h:commandLink><h:outputLabel value="çıkış"></h:outputLabel></h:commandLink>  
	    </p:submenu>
    </p:menubar>  
		</h:panelGroup>
		</h:panelGrid>	
		<h:panelGrid  width="900" border="0" style="background-image:url('../images/seffaf.png');text-align:center;">	
			<h:form id="adminLoginForm" >
				<h:outputLabel value="GİRİŞ BİLGİLERİ" />
				<h:panelGrid columns="2" style="text-align:center; margin :100px 180px 100px;">
					
					<h:outputLabel value="#{message.userNameInputLabel}" />
					<h:inputText id="userName"
						value="#{AdminManagerBean.admin.userName}" />
					<h:outputLabel value="#{message.passwordInputLabel}" />
					<h:inputSecret id="password"
						value="#{AdminManagerBean.admin.password}" />
					<p:commandButton id="login" action="#{AdminManagerBean.login}" 
					value="#{message.loginButtonLabel}" ajax="false" async="false" style="margin-left: 100px" />
				</h:panelGrid>
				<h:outputText rendered="#{AdminManagerBean.error == true}"
				style="color: red; font-weight: bold;"
				value="#{message.loginFailedMessage}" />
			<h:outputText value="#{message.pleaseLoginMessage}" />
			</h:form>
			
	</h:panelGrid>
	</h:form>
	</center>	
	</body>
	</html>
</f:view>